/*
 * Month.java
 *
 * Created on August 15, 2006, 11:01 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package calendarapplication;

import java.util.*;
/**
 *
 * @author eddie.dillon
 */
public class Month {
    
    /** Creates a new instance of Month */
    public Month(Calendar cal) {
        Name(cal);
    }
    
    public String Name(Calendar cal) {
       String retMonth = "";
       int month = cal.get(Calendar.MONTH);
       switch (month) {
          case 0: retMonth = "January"; break;
          case 1: retMonth = "February"; break;
          case 2: retMonth = "March"; break;
          case 3: retMonth = "April"; break;
          case 4: retMonth = "May"; break;
          case 5: retMonth = "June"; break;
          case 6: retMonth = "July"; break;
          case 7: retMonth = "August"; break;
          case 8: retMonth = "September"; break;
          case 9: retMonth = "October"; break;
          case 10: retMonth = "November"; break;
          case 11: retMonth = "December"; break; 
       }
       return retMonth;
    }
    
}
